package com.mc.music_web.mapper;

import com.mc.music_web.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface AdminMapper {
    //删除
    int delteAdmin(Admin admin);
    //添加
    int insert(Admin admin);


    //单查询
    Admin selectByPrimaryKey(Integer adminId);


    //修改
    int updateByPrimaryKey(Admin admin);
   //登录
    Admin login(Admin admin);
   //查询所有
    List<Admin> selectAllList();

    //模糊查询
    List<Admin> selectByChoose(String keyword);
}